Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NODE_ENV=production fixes and test fixes. #14

Merged
merged 14 commits into from Jul 25, 2020
Merged

NODE_ENV=production fixes and test fixes. #14

merged 14 commits into from Jul 25, 2020

Conversation

cryptoquick
Copy link
Collaborator

Hey, sorry about this, but as I was testing the build, I noticed that allowSyntheticDefaultImports is actually what I was going for, even though TypeScript recommended esModuleInterop, which also implies allowSyntheticDefaultImports.

I also noticed that the tests weren't running anymore with some changes I made earlier, and I worked to get those working again.

Finally, I had to move most of the TypeScript definitions out of devDependencies because they're actually needed in a production build.

By "production build" I mean, doing an npm install with the NODE_ENV=production, to help trim down the size of the Docker image.

I also had to split up the tsconfig, so that the module can be built without jasmine and tests.

Once this is merged, this should be ready to be pushed. I'd suggest maybe increasing the minor version, just to better signal that there are some changes upstream that might warrant further investigation.

@cryptoquick
Copy link
Collaborator Author

One more thing... I had to remove the type property in the package.json because it was for making this work with ESModules. Unfortunately, when it comes to TypeScript, I'm not aware of a good way to make ESModules work with the way I've configured TypeScript, and so I'm not sure what to do there, other than to leave it out.

@somdoron somdoron merged commit fa5e2cf into zeromq:master Jul 25, 2020
@somdoron
Copy link
Member

Thanks!

@somdoron
Copy link
Member

Do you want to add a github action that push a release to npm? I will add the secret to the organization settings.

@somdoron
Copy link
Member

@cryptoquick do you want to join the maintainers of the project? If you do, please read C4:

https://rfc.zeromq.org/spec/42/

@cryptoquick
Copy link
Collaborator Author

Sure, just let me know what environment variable you're using.

@somdoron
Copy link
Member

NPM_TOKEN

@cryptoquick
Copy link
Collaborator Author

cryptoquick commented Jul 25, 2020

As for joining as a maintainer, yes, I'd actually be interested. I'm very excited about ZeroMQ, and I think it could be a really unique and useful experience to develop streaming data patterns in JavaScript projects.

I just skimmed the C4, it all sounds very reasonable. Are there other ways the community communicates other than GitHub?

@somdoron
Copy link
Member

We have a gitter and a mailing list:

https://zeromq.org/our-community/

Make sure to not merge your own pull requests, sent you an invite.

@somdoron
Copy link
Member

By the way, the next step for this library (IMHO) is to follow (zeromq.js)[https://github.com/zeromq/zeromq.js] and move into async/await API instead of EventEmitter. Checkout the following issue:

#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants